package com.techstar.ats.codec.history.decoder;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.dxp.history.rep.F29ReportEnd;
import com.techstar.ats.type.MessageType;

public enum F29ReportEndDecoder implements ReportDecoder<F29ReportEnd> {
	INSTANCE;

	public F29ReportEnd create() {
		return new F29ReportEnd();
	}

	public void decode(ByteBuf buf, F29ReportEnd value) {
		ReportDecoder.super.decode(buf, value);
		value.type = MessageType.valueOf(buf.readUnsignedShort());
	}
}
